//头部进度条加载
var num1 = 0
var winLoad = false
window.onload=function(){
    winLoad=true
}
var t1 = setInterval(function () {
    num1++
    if (num1>=80&&!winLoad) return
    var nprogressObj = document.querySelector('.nprogressObj')
    if (nprogressObj) {
        nprogressObj.style.width=num1+"%"
    }else{
        var nprogressObj = document.createElement('div')
        nprogressObj.className="nprogressObj"
        nprogressObj.style.position='fixed'
        nprogressObj.style.top="0"
        nprogressObj.style.height='5px'
        nprogressObj.style.backgroundColor="#29d"
        nprogressObj.style.width=num1+"%"
        document.body.appendChild(nprogressObj)
        
        var nprogressRadiusObj = document.createElement('div')
        nprogressRadiusObj.className='nprogressRadius'
        document.body.appendChild(nprogressRadiusObj) 
    }
    if (num1>=110) {
        clearInterval(t1)
        document.body.removeChild(nprogressObj)
        document.body.removeChild(document.querySelector('.nprogressRadius'))
    } 
},10)

